﻿/*
 * 名称：程序设计语言-编译原理算法平台主控程序
 * 制作者：WT
 * 创建时间：2012-9
 */
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CompilerPrinciples.LexicalAnalysis.DFALexicalAnalysis;

namespace CompilerPrinciples
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
        }

        #region Menu_Lexical
        /// <summary>
        /// C语言子集编译器
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void item_LexicalDFA_C_Click(object sender, EventArgs e)
        {
            DFA_C_Program dfa_C_Program = new DFA_C_Program();
            dfa_C_Program.MdiParent = this;
            dfa_C_Program.Show();
            dfa_C_Program.WindowState = FormWindowState.Maximized;
            
           
        }
        #endregion 

        #region Menu_LL(1)
        private void item_LL1_Click(object sender, EventArgs e)
        {
            SyntaxAnalysis.Top_Down_Analysis.LL1_Analysis lL1_Analysis = 
                new CompilerPrinciples.SyntaxAnalysis.Top_Down_Analysis.LL1_Analysis();
            lL1_Analysis.MdiParent = this;
            lL1_Analysis.Show();
            lL1_Analysis.WindowState = FormWindowState.Maximized;
          


        }
        #endregion 

        #region Menue_Shift_Reduce
        private void item_Shift_Reduce_Click(object sender, EventArgs e)
        {
            SyntaxAnalysis.Bottom_Up_Analysis.Shift_Reduce_Analysis shift_Reduce_Analysis =
                new CompilerPrinciples.SyntaxAnalysis.Bottom_Up_Analysis.Shift_Reduce_Analysis();
            shift_Reduce_Analysis.MdiParent = this;
            shift_Reduce_Analysis.Show();
            shift_Reduce_Analysis.WindowState = FormWindowState.Maximized;

        }
        #endregion 

        #region Menu_关于
        /// <summary>
        /// 关于
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void item_About_Click(object sender, EventArgs e)
        {
            AboutBox aboutBox = new AboutBox();
            aboutBox.ShowDialog();
        }
        #endregion 

       
      

       




    }
}
